home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Panorama / Panorama - Disk 28C (1988-04-27)(Pacific North-West Amigas Club)[WB].zip / Panorama - Disk 28C (1988-04-27)(Pacific North-West Amigas Club)[WB].adf / Ifs / ifs.doc < prev    next >
Text File  |  1988-02-09  |  1KB  |  42 lines

  1. IFS Documentation
  2.  
  3. IFS is the C version of the Basic program described in the January 88
  4. issue of BYTE magazine.  IFS reads the standard input for the window
  5. position, window size, number of iterations, xoffset, yoffset, xscale,
  6. yscale, number of transformations and the transformation coefficients. 
  7. You may run IFS and type all of this in on the command line.  But, it is
  8. much easier to just redirect stdin to a text file.  I have provided 4
  9. text files for the IFS codes described in the article.  To generate the
  10. IFS for sierpinskis' triangle you would type the following:
  11.  
  12. ifs <triangle.ifs
  13.  
  14. Each *.ifs file has the following format:
  15.  
  16.  
  17. left top width height
  18. interations
  19. xoffset yoffset xscale yscale
  20. m
  21. a1 b1 c1 d1 e1 f1 p1
  22. a2 b2 c2 d2 e2 f2 p2
  23. a3 b3 c3 d3 e3 f3 p3
  24. .
  25. .
  26. .
  27. am bm cm dm em fm pm
  28.  
  29.  
  30.  
  31. The window specifications left, top, width, height are integers.
  32. The iterations and m are also integers.
  33. The rest of the values are floats and require a decimal point.
  34. The probabilities p1, p2, p3, ..., pm must be in decending order and add
  35. up to 1.
  36.  
  37.  
  38.                    Enjoy,
  39.  
  40.                           Jeff Mahannah
  41.                           CIS 74676,3104
  42.